# Makefile: building linked list
 
# Flags and compiler
CC=gcc
CFLAGS= -W -Wall -Werror -ansi -pedantic -O2 -D_BSD_SOURCE
 
# Files
SRC= list.c main.c
OBJ= ${SRC:.c=.o}
 
tp20120116: ${OBJ}
	${CC} ${CFLAGS} -o $@ ${OBJ}
 
# cleaning
clean::
	rm -f *~ *.o tp20120116
 
# END
